<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台登录</title>
    <link rel="stylesheet" type="text/css" href="{$this->setting['weburl']}/content/js/jBox/skin/jbox.css" media="all" />
    <link rel="stylesheet" type="text/css" href="{$this->themesURL}/bootstrap/css/bootstrap.css?v={echo time()}" media="all" />
    <link rel="stylesheet" href="{$this->setting['weburl']}/themes/admin/images/login.css?v={echo time()}" type="text/css" media="all" />
    <script type="text/javascript" src="{$this->setting['weburl']}/content/js/jquery.min.js"></script>
    <script type="text/javascript" src="{$this->setting['weburl']}/content/js/common.js?v={echo time()}"></script>
    <script type="text/javascript" src="{$this->setting['weburl']}/content/js/admin.js?v={echo time()}"></script>
    <script type="text/javascript" src="{$this->setting['weburl']}/content/js/jBox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="{$this->themesURL}/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">var host = "{$this->setting['weburl']}", jBoxTip = true; </script>
    <!--[if IE]>
    <script src="http://letskillie6.googlecode.com/svn/trunk/letskillie6.zh_CN.pack.js"></script>
    <![endif]-->
</head>
<body>
<div class="container">
    <div id="login">
        <div id="header"><h1>{$this->setting['webname']}</h1></div>
        <form action="{$this->url( $c, 'chkLogin' )}" method="post">
            <div class="form">
                <div class="input-append">
                    <input class="input-large required" name="author" placeholder="请输入用户名" type="text">
                    <span class="add-on"><i class="icon-user"></i></span>
                </div>

                <div class="input-append">
                    <input class="input-large required" name="pass" type="password" placeholder="请输入密码">
                    <span class="add-on"><i class="icon-lock"></i></span>
                </div>

                <div class="input-append">
                    <input class="input-small required" name="verify" placeholder="请输入验证码" type="text">
                    <span class="add-on"><i class="icon-film"></i></span>
                    <img src="{$this->url( $c, 'getcode' )}" id="verify" title="点击刷新" />
                </div>
            </div>
            <div class="bottom">
                <label class="checkbox inline">
                    <input type="checkbox" name="remember" value="2592000" checked/>记住我
                </label>
                <a title="登录" href="" class="button save">登陆</a>
            </div>
        </form>
    </div>
</div>

<script type="text/javascript">
    $( function () {
        $( "#verify" ).click( function () {
            $( this ).attr( 'src', "{$this->url( $c, 'getcode' )}&v=" + new Date().getMilliseconds() )
        });
        $( "body,.save" ).keydown( function ( event ) {
            if ( event.which == 13 ) {
                ajaxPOST( $( ".save" ) );
                return false;
            }
        });
    });
</script>
</body>
</html>
